#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

void* my_memset(void* str1, int n, size_t count)
{
	void* ret = str1;
	while (count--)
	{
		*(char*)str1 = n;
		str1 = (char*)str1 + 1;
	}
	return ret;
}

int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	my_memset(arr, 1, 20);
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
	return 0;
}